Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable timing tests for both Docker and macOS builds #1325

Merged
merged 4 commits into from
Apr 17, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Apr 15, 2024

The Docker build that performs ARM-64 cross compilation has unreliable timing when run as part of a GitHub workflow. We therefore now disable timing tests not only for the macOS build (like before), but also for the Docker builds. That way the publication of Docker images is not prevented by spuriously failing timing tests anymore.

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.67%. Comparing base (6130f5d) to head (fda3b09).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1325      +/-   ##
==========================================
+ Coverage   88.37%   88.67%   +0.30%     
==========================================
  Files         316      321       +5     
  Lines       28440    28508      +68     
  Branches     3138     3138              
==========================================
+ Hits        25133    25280     +147     
+ Misses       2168     2091      -77     
+ Partials     1139     1137       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -153,7 +153,7 @@ TEST(CancellationHandle, ensureObjectLifetimeIsValidWithoutWatchDogStarted) {
namespace ad_utility {

TEST(CancellationHandle, verifyWatchDogDoesChangeState) {
#ifdef __APPLE__
#if (defined(__APPLE__)) || defined(_QLEVER_NO_TIMING_TESTS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I would simply rely on the custom macro and just set the flag for macos builds. In my opinion this makes more sense as it allows people on actual macs (outside of GH action runners) to run the tests normally

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback.
I have incorporated it, let's see if this works.

@hannahbast hannahbast changed the title Disable timing tests also for Docker, not only for Apple. Disable timing tests for both Docker and macOS workflows Apr 17, 2024
Signed-off-by: Johannes Kalmbach <[email protected]>
@hannahbast hannahbast changed the title Disable timing tests for both Docker and macOS workflows Disable timing tests for both Docker and macOS builds Apr 17, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hannahbast hannahbast merged commit b3aadb5 into ad-freiburg:master Apr 17, 2024
19 checks passed
@joka921 joka921 deleted the no-timin-tests-on-docker branch December 18, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants